:root {
    --entry-height: 22px;
    --entry-hors-widht: 22px;
    --entry-hors-backcolor: #2c2c2c;
    --entry-bordercolor: #232323;
    --entry-input-right: 50px;
    --entry-input-bcolor: #404040;
}

.entry {
    height: var(--entry-height);
    border: 1px solid var(--entry-bordercolor);
    margin: 1px;
    user-select: none;
}

.entry > span {
    display: inline-block;
    position: absolute;
    height: var(--entry-height);
    font-size: small;
    color: #cccccc;
    line-height: var(--entry-height);
}

.entry > :nth-child(1) {
    width: var(--entry-hors-widht);
    background-color: var(--entry-hors-backcolor);
    border-right: 2px solid var(--entry-bordercolor);
    text-align: center;
}

.entry > :nth-child(2) {
    background-color: var(--entry-input-bcolor);
    left: calc(var(--entry-hors-widht) + 4px);
    right: var(--entry-input-right);
    border-right: 1px solid var(--entry-bordercolor);
    padding-left: 3px;
    padding-right: 3px;
    white-space: pre;   /* disable new line */
    overflow: auto;
}

.entry > span::-webkit-scrollbar {
    display: none;
}

.entry > :nth-child(3) {
    right: var(--entry-input-right);
    background-color: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(4px);
    color: rgb(117, 153, 120);
    padding-left: 5px;
    padding-right: 5px;
    min-width: 30px;
    max-width: 120px;
    border-top-left-radius: calc(var(--entry-input-right) / 2);
    border-bottom-left-radius: calc(var(--entry-input-right) / 2);
    box-shadow: -1px 0px 4px 2px #2a2a2a;
    white-space: pre;
    overflow: auto;
}

.entry > :nth-child(4) {
    width: var(--entry-input-right);
    right: 0px;
    background-color: var(--entry-hors-backcolor);
    text-align: center;
    overflow: hidden;
}

.entry > :nth-child(4) > svg {
    position: relative;
    left: calc(var(--entry-input-right) / 4);
    /* Zoom in the upper left corner  */
    transform-origin: left top;
    transform: scale(0.7);
}

.entry > :nth-child(1):hover, .entry > :nth-child(4):hover {
    animation: button-hover 0.4s ease 0s 1 alternate forwards;
}

@keyframes button-hover {
    0% {
        background-color: var(--entry-hors-backcolor);
    }
    100% {
        background-color: #000000;
        fill: #ffffff;
    }
}

@keyframes button-click {
    0% {
        background-color: var(--entry-input-bcolor);
    }
    25% {
        background-color: #994545;
    }
    50% {
        background-color: var(--entry-input-bcolor);
    }
    75% {
        background-color: #994545;
    }
    100% {
        background-color: var(--entry-input-bcolor);
    }
}